package ilender.mappers;

import java.util.List;

import org.apache.ibatis.annotations.*;

import ilender.models.*;

public interface ItemsMapper extends BaseMapper<MItem>{
	/**Returns a list of items that match the searchString.*/
	public List<MItem> searchItems(@Param("searchString") String searchString,
			@Param("facebookUserId") long facebookUserId,
			@Param("limit") long limit);

	/**Returns a list of items belonging to the specified user.*/
	public List<MItem> userItems(@Param("facebookUserId") long facebookUserId,@Param("limit") long limit);

	/**Returns a list of items requested by the specified user.*/
	public List<MItem> userRequestedItems(@Param("facebookUserId") long facebookUserId,@Param("limit") long limit);
}

